/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.sysgfk.factory;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.logging.Logger;
import java.util.logging.Level;

/**
 *
 * @author giovane.fabricio
 */
public class ConnectionFactory {
    private ConnectionFactory(){
        
    }
    
    public static Connection getOracleConection() throws SQLException{
        try{
            Class.forName("oracle.jdbc.driver.OracleDriver");
        } catch(ClassNotFoundException ex){
            Logger.getLogger(ConnectionFactory.class.getName()).log(Level.SEVERE, null, ex);
        } finally {
            return DriverManager.getConnection("jdbc:oracle:thin:@172.16.1.66:1521:DBDES?user=scott&password=tiger");
        }
    }
}
